const mes = document.getElementById('mes')

const my = 'http://localhost:5000/api/posts'
const fake = 'https://jsonplaceholder.typicode.com/users'

fetch(my)
    .then(data => data.json())
    .then(data => mes.innerHTML = data[0].author)